package com.newcoin.xgb.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;


/**
 * 注册入参对象
 */
@Data
public class RegisteredDto {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^[1][3456789][0-9]{9}$" ,message = "手机号格式不正确")
    private String mobile;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 邀请码
     */
    @NotBlank(message = "邀请码不能为空")
    private String invCode;

    @NotBlank(message = "验证码不能为空")
    private String verCode;


}
